import { Handler } from "./Handler";

export class EventHandler extends Handler {

    constructor(caller, method, args, once) {
        super(caller, method, args, once);
    }
    recover() {
        if (this._id > 0) {
            this._id = 0;
            this.clear();
        }
    }
    static create(caller, method, args = null, once = true) {
        return new EventHandler(caller, method, args, once);
    }
}